
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class FieldAccess extends Access {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getFieldAccessType();
	}
	
	protected Access expression;
	protected Identifier name;
	
	public FieldAccess(Span span, Access expression,Identifier name) {
		super(span);
		this.expression = expression;
		this.name = name;
	}
	
	
	public Access getExpression() {
		return expression;
	}
	
	public void setExpression(Access expression) {
		this.expression = expression;
	}
	
	public Identifier getName() {
		return name;
	}
	
	public void setName(Identifier name) {
		this.name = name;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitFieldAccess(this);
	}
}
